package cn.com.surker.production.service.impl;

import cn.com.surker.production.dao.IndentPumpDao;
import cn.com.surker.production.entity.ProductionIndentPump;
import cn.com.surker.production.service.IndentPumpService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 生产计划表 服务实现类
 * </p>
 *
 * @author admin
 * @since 2024-07-25
 */
public abstract class IndentPumpServiceBaseImpl extends ServiceImpl<IndentPumpDao, ProductionIndentPump> implements IndentPumpService {

	@Resource
	protected IndentPumpDao indentPumpDao;

	@Override
	public List<ProductionIndentPump> findByIndentId(String dbCode, Long indentId) {
		if (indentId == null) {
			return null;
		}
		List<ProductionIndentPump> indentPumps = indentPumpDao.findByIndentId(dbCode, indentId);
		return indentPumps;
	}

	@Override
	public ProductionIndentPump queryDefaultIndentId(String dbCode, Long indentId) {
		if (indentId == null) {
			return null;
		}
		ProductionIndentPump indentPump = indentPumpDao.queryDefaultIndentId(dbCode, indentId);
		return indentPump;
	}

	@Override
	public ProductionIndentPump queryIndentPump(String dbCode, Long indentId, Long castModeId, Long pumpDeviceId) {
		return null;
	}

	@Override
	protected Class<ProductionIndentPump> currentModelClass() {
		return ProductionIndentPump.class;
	}
}